<?php
/**
 * Created by PhpStorm.
 * User: zd
 * Date: 2018/12/7
 * Time: 15:16
 */

namespace app\api\validate;


class CardBaseParameter extends BaseValidate
{
    protected $rule=[
        'phone'=>'length:1,11',
        'wechat_num'=>'length:1,50',
        'company'=>'length:1,50',
        'address'=>'length:1,255',
        'share_word'=>'length:5,50',
        'welcome_word'=>'length:5,50',
    ];

    protected $message=[
        'phone'=>'请输入正确的手机号码',
        'wechat_num'=>'长度超过限制',
        'company'=>'输入长度超过限制',
        'address'=>'输入长度超过限制',
        'share_word'=>'分享语长度超过限制',
        'welcome_word'=>'欢迎语长度超过限制'
    ];

}